'''
数组的索引操作
'''
import numpy as np

ary = np.arange(1,10)
print(ary)
print(ary[0:5:1])#从0位到5位(不包含5),以步长1进行切片
print(ary[0:5:2])
print(ary[::-1])
#不写步长则默认为1